<template>
  <div class="wrapper">
    <v-head></v-head>
    <v-sidebar></v-sidebar>
    <div class="content-box" :class="{ 'content-collapse': collapse }">
      <div class="content scrollbar">
        <router-view />
        <el-backtop target=".content"></el-backtop>
      </div>
    </div>
  </div>
</template>

<script>
import vHead from "@/components/mainHeader/Header.vue";
import vSidebar from "@/components/mainHeader/Sidebar.vue";
import bus from "@/utils/bus";
export default {
  components:{vHead,vSidebar},
  data() {
    return {
      enterTransition: 'animate__animated_app animate__fadeIn',
      leaveTransition: 'animate__animated_app animate__fadeOut',
      collapse:false
    };
  },
  created() {
    bus.$on('collapse-content', msg => {
      this.collapse = msg;
    });
  },
  methods: {

  }
};
</script>
<style lang="less">
  .wrapper{
    width: 100%;
    height: 100%;
  }
</style>